package com.github.bridge.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
public class CreateOuterOrgDTO extends BaseDTO {

    @NotBlank(message = "企业名称不能为空")
    @Schema(description = "企业名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "是否加密 默认false", defaultValue = "false")
    private Boolean encrypt = false;

    @NotBlank(message = "机构类型不能为空")
    @Schema(description = "机构类型 MERGE REGCODE OTHER " +
            "MERGE - 统一社会信用代码，18位" +
            "REGCODE - 企业工商注册号，15位" +
            "OTHER - 其他类型，不校验证件号格式", requiredMode = Schema.RequiredMode.REQUIRED)
    private String regType;

    @NotBlank(message = "企业证件号不能为空")
    @Schema(description = "企业证件号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String orgCode;

}
